package com.databasedesign.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.databasedesign.dao.DormitoryDao;
import com.databasedesign.dao.DormitoryLiveinDao;
import com.databasedesign.dao.StudentDao;
import com.databasedesign.pojo.po.Dormitory;
import com.databasedesign.pojo.po.Student;
import com.databasedesign.service.DormitoryService;
import com.databasedesign.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
    public class DormitoryServiceImpl extends ServiceImpl<DormitoryDao, Dormitory> implements DormitoryService {

    @Autowired
    private DormitoryDao dormitoryDao;

    @Override
    public List<Dormitory> GetAll() {
        return dormitoryDao.GetAll();
    }

    @Override
    public List<Dormitory> GetGirl() {
        return dormitoryDao.GetGirl();
    }

    @Override
    public List<Dormitory> GetBoy() {
        return dormitoryDao.GetBoy();
    }

    @Override
    public Integer GetIdByRoomNumber(String RoomNumber) {
        return dormitoryDao.GetIdByRoomNumber(RoomNumber);
    }

    @Override
    public String GetRoomNumberById(Integer DormitoryId) {
        return dormitoryDao.GetRoomNumberById(DormitoryId);
    }


}
